﻿#define _CRT_SECURE_NO_WARNINGS 1
#include"BinaryTree.h"
void test1()
{
	BTNode*root=CreatBinaryTree();
	PreOrder(root);
	printf("\n");

	InOrder(root);
	printf("\n");

	PostOrder(root);
	printf("\n");

	int size = BinaryTreeSize(root);
	printf("%d\n", size);

	int ret1 = BinaryTreeleafSize(root);
	printf("%d\n", ret1);

	BinaryTreeHeight(root);
	printf("%d\n", BinaryTreeHeight(root));

	BinaryTreeleafkSize(root, 2);
	printf("%d\n", BinaryTreeleafkSize(root, 3));
	BinaryTreeFind(root, 4);
	LevelOrder(root);
	//printf("%d\n", BinaryTreeComplete(root));

}
int main()
{
	test1();
	return 0;
}